﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WcfServer.Classes.Utility;

namespace WcfServer.Classes.Server
{
    [Serializable]
    public class MainResponse
    {
        public byte[] TargetToken { set; get; } // this is of type UserResponse
        public byte[] ClientToken { set; get; } // this is of type UserResponse
        public MainResponse(byte[] data)
        {
            var r = SerializerHandler<MainResponse>.DeSerializeInput(data);
            this.ClientToken = r.ClientToken;
            this.TargetToken = r.TargetToken;
        }
        public MainResponse()
        {

        }
        public byte[] Send()
        {
            var r = SerializerHandler<MainResponse>.SerializeInput(this);
            return r;
        }
    }
}
